<template>
	<view calss="container">
		<image :src="image_url" @tap="previewImage" mode="aspectFit" class="s-image"></image>
		<view class="s-yes">
			感谢大家的支持
		</view>
	</view>
</template>

<script>
	import Reward from './reward-model.js'
	var reward = new Reward(); 
	export default {
		data() {
			return {
				image_url:'' //打赏图片
			}
		},
		onLoad() {
			var that = this;
			that.reward();
		},
		methods: {
			//我的信息
			reward(){
				var that = this;
				reward.reward((res)=>{
					if(res.code==8888){
						that.image_url = res.data.image_url;
					}
				})
			},
			//图片预览
			previewImage(){
				var that = this;
				reward.previewImage([that.image_url]);  
			}
			
		}
	}
</script>

<style>
	@import url("reward.css");
</style>
